package com.shaw.workrecord.service;

import com.shaw.workrecord.entity.PageRequest;
import com.shaw.workrecord.entity.PageResponse;
import com.shaw.workrecord.pojo.game.request.DintWordGroupAddRequest;
import com.shaw.workrecord.pojo.game.request.DintWordGroupEditRequest;
import com.shaw.workrecord.pojo.game.response.DintWordGroupResponse;

/**
 * @author jiangjunhui
 * @description
 * @date 2022/9/15 16:31
 */
public interface IDintWordGroupService {

    /**
     * 获取词组分页列表
     *
     * @param pageRequest
     * @return 分页结果
     */
    PageResponse<DintWordGroupResponse> getWordPage(PageRequest pageRequest);

    /**
     * 新增词组
     *
     * @param request 词组请求对象
     * @return 结果
     */
    Boolean addWord(DintWordGroupAddRequest request);

    /**
     * 编辑词组
     *
     * @param request 词组请求对象
     * @return 结果
     */
    Boolean editWord(DintWordGroupEditRequest request);

    /**
     * 删除词组
     *
     * @param id id
     * @return 结果
     */
    Boolean deleteWord(Long id);
}
